<template>
	<view class="content">
		<view class="header">
			<p class="title">转出</p>
			<view class="FIL">
				<view class="FIL_left">
					<p class="text_1">转出</p>
					<p>XPY</p>
				</view>
				<view class="FIL_right">
					<p class="text_1">转出</p>
					<input type="text" placeholder="请输入转出数量" class="p" />
				</view>
				<p class="num">矿池余额总量：0.000</p>
				<button type="default" class="Sub">提交</button>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: '质押'
			}
		},
		onShow() {
			this.initData()
		},
		methods: {
			//获取Token
			initData(){
				if(this.$db.get('userToken')){
					console.log(this.$db.get('userToken'))
				}else{
					this.$db.userToken()
				}
			},
			setpledge(){
				uni.navigateTo({
					url:'./setpledge'
				})
			}
		}
	}
</script>

<style lang="less">
	*{
		margin: 0;
		padding: 0;
		// background: #f3f3f3;
		font-family: PingFang SC;
	}
	.content{
		width: 100%;
		height: 1334rpx;
		.header{
			height: 414rpx;
			background: #764CFA;
			opacity: 1;
			text-align: center;
			padding: 0 20rpx;
			.title{
				line-height:200rpx;
				color: #FFFFFC;
				font-size: 36rpx;
				background: #764CFA;
				font-family: PingFang SC;
				font-weight: 400;
			}
			.FIL{
				height: 224rpx;
				background: #FFFFFC;
				opacity: 1;
				border-radius: 8px;
				padding: 20rpx 24rpx;
				margin-top: 40rpx;
				.FIL_left{
					width: 100%;
					height: 80rpx;
					background: #FFFFFC;
					font-size: 28rpx;
					color: #000000;
					display: flex;
					justify-content: space-between;
					// align-items:center;
					p{
						background: #FFFFFC;
						align-self:center;
					}
					.text_1{
						// margin-top: 40rpx;
						align-self:center;
						font-size: 16px;
						color: #000000;
					}
				}
				.FIL_right{
					width: 100%;
					height: 80rpx;
					background: #FFFFFC;
					font-size: 28rpx;
					color: #000000;
					display: flex;
					justify-content: space-between;
					// align-items:center;
					.p{
						background: #FFFFFC;
						align-self:center;
					}
					.text_1{
						// margin-top: 40rpx;
						align-self:center;
						font-size: 16px;
						color: #000000;
					}
				}
				.num{
					text-align: left;
					margin-top: 30px;
				}
				.Sub{
					margin-top: 30px;
					width: 100%;
					height: 98rpx;
					background: #764CFA;
					opacity: 1;
					border-radius: 4px;
					font-size: 28rpx;
					color: #FFFFFF;
					line-height: 98rpx;
				}
			}
		}
	}
</style>
